package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import com.xbongbong.pro.statistic.enums.StatisticsTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 导入业绩目标数据
 *
 * @author wufeng
 * @date 2018/9/26 15:06
 */
@Getter
@Setter
@ToString
public class ImportPerformanceDTO extends BaseDTO {

    @Getter(onMethod_ = {@QueryIgnore})
    @NotNull(message = "{dto.msg.importPerformance.file.NotNull}")
    private MultipartFile file;
    /**
     * 业绩类型：员工的业绩 部门的业绩
     * {@link com.xbongbong.saas.enums.PerformanceTypeEnum}
     */
    @NotBlank(message = "{dto.msg.importPerformance.type.NotBlank }")
    private String type;
    /**
     * 指标id
     */
    @NotNull(message = "{dto.msg.importPerformance.setId.NotNull}")
    private Long setId;
    /**
     * 年份
     */
    @NotNull(message = "{dto.msg.importPerformance.year.NotNull}")
    private Integer year;
    /**
     * 指标类型 1-系统指标 2-自定义指标
     * {@link StatisticsTypeEnum}
     */
    @NotNull(message = "{dto.msg.importPerformance.statisticsType.NotNull}")
    private Integer statisticsType;
}
